home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Entertainment / MacMud / Unix / sys⁄ttychars.h < prev    next >
Encoding:
Text File  |  1989-11-06  |  1.1 KB  |  45 lines  |  [TEXT/????]

  1. /*    @(#)ttychars.h 2.5 88/02/08 SMI; from UCB 4.6 83/07/01    */
  2.  
  3. /*
  4.  * User visible structures and constants
  5.  * related to terminal handling.
  6.  */
  7. #ifndef _TTYCHARS_
  8. #define    _TTYCHARS_
  9. struct ttychars {
  10.     char    tc_erase;    /* erase last character */
  11.     char    tc_kill;    /* erase entire line */
  12.     char    tc_intrc;    /* interrupt */
  13.     char    tc_quitc;    /* quit */
  14.     char    tc_startc;    /* start output */
  15.     char    tc_stopc;    /* stop output */
  16.     char    tc_eofc;    /* end-of-file */
  17.     char    tc_brkc;    /* input delimiter (like nl) */
  18.     char    tc_suspc;    /* stop process signal */
  19.     char    tc_dsuspc;    /* delayed stop process signal */
  20.     char    tc_rprntc;    /* reprint line */
  21.     char    tc_flushc;    /* flush output (toggles) */
  22.     char    tc_werasc;    /* word erase */
  23.     char    tc_lnextc;    /* literal next character */
  24. };
  25.  
  26. #define    CTRL(c)    ('c'&037)
  27.  
  28. /* default special characters */
  29. #define    CERASE    0177
  30. #define    CKILL    CTRL(u)
  31. #define    CINTR    CTRL(c)
  32. #define    CQUIT    034        /* FS, ^\ */
  33. #define    CSTART    CTRL(q)
  34. #define    CSTOP    CTRL(s)
  35. #define    CEOF    CTRL(d)
  36. #define    CEOT    CEOF
  37. #define    CBRK    0377
  38. #define    CSUSP    CTRL(z)
  39. #define    CDSUSP    CTRL(y)
  40. #define    CRPRNT    CTRL(r)
  41. #define    CFLUSH    CTRL(o)
  42. #define    CWERASE    CTRL(w)
  43. #define    CLNEXT    CTRL(v)
  44. #endif
  45.